<template>
  <div class="goods-item">
    <div class="pic">
      <img src="https://tse3-mm.cn.bing.net/th/id/OIP-C.CzNVsT52uAP8l2DWobbkMgHaHa?pid=ImgDet&rs=1" alt="">
    </div>
    <div class="txt">
      <div class="name">{{ goodsDetail.name }}</div>
      <div class="price">{{ goodsDetail.price }}￥</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    goodsDetail: {
      type: Object
    }
  }
}
</script>

<style lang="scss" scoped>
.goods-item {
  background-color: #dde;
  border-radius: 3px;
  display: flex;
  height: 80px;
  width: 240px;
  .pic{
    width: 80px;
    img{
      width: 80px;
      height: 100%;
    }
  }
  .txt {
    flex: 1;
    padding: 5px;
    .name{
      font-size: 20px;
    }
    .price {
      margin-top: 25px;
      color: red;
    }
  }
}
</style>
